build: Don't use 'continue'
authorTimm Bäder <mail@baedert.org>
Sun, 31 Mar 2019 04:37:10 +0000 (06:37 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 31 Mar 2019 04:37:10 +0000 (06:37 +0200)
It does not exist in meson 0.48 apparently.

testsuite/reftests/meson.build

index e1a24c516388f8b150ef9eca9ef2a2ee04d824e8..45de53c1d36b7b650a66be940a6d5ebceb922684 100644 (file)
@@ -408,21 +408,20 @@ testdata = [
 ]
 
 foreach testname : testdata
-  if not testname.endswith('.ui') or testname.endswith('.ref.ui')
-    continue
+  if testname.endswith('.ui') and not testname.endswith('.ref.ui')
+    test('reftest ' + testname, gtk_reftest,
+         args: [ '--tap', '-k', '--verbose', join_paths(meson.current_source_dir(), testname) ],
+         env: [ 'GIO_USE_VOLUME_MONITOR=unix',
+                'GSETTINGS_BACKEND=memory',
+                'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+                'GTK_CSD=1',
+                'G_ENABLE_DIAGNOSTIC=0',
+                'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+                'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
+                'GSK_RENDERER=opengl',
+                'REFTEST_MODULE_DIR=@0@'.format(meson.current_build_dir()),
+              ],
+         suite: 'reftest')
   endif
-  test('reftest ' + testname, gtk_reftest,
-       args: [ '--tap', '-k', '--verbose', join_paths(meson.current_source_dir(), testname) ],
-       env: [ 'GIO_USE_VOLUME_MONITOR=unix',
-              'GSETTINGS_BACKEND=memory',
-              'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
-              'GTK_CSD=1',
-              'G_ENABLE_DIAGNOSTIC=0',
-              'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
-              'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
-              'GSK_RENDERER=opengl',
-              'REFTEST_MODULE_DIR=@0@'.format(meson.current_build_dir()),
-            ],
-       suite: 'reftest')
 endforeach